package org.chaos.sekiro.workorder.app.form.service

import org.chaos.sekiro.workorder.app.form.internal.txservice.ComponentAbilityTxService
import org.chaos.sekiro.workorder.app.form.internal.txservice.ComponentAttributeTxService
import org.chaos.sekiro.workorder.app.form.internal.txservice.ComponentTxService
import org.springframework.stereotype.Service

@Service
class ComponentService(
    private val componentTxService: ComponentTxService,
    private val componentAttributeTxService: ComponentAttributeTxService,
    private val componentAbilityTxService: ComponentAbilityTxService
) {

    fun findComponent(userId: Long, formId: Long) = componentTxService.findComponent(userId, formId)

    fun findComponentAttribute(userId: Long) = componentAttributeTxService.findComponentAttribute(userId)

    fun findComponentAbility(userId: Long) = componentAbilityTxService.findComponentAbility(userId)
}